<?php

  /**
   * конфигурация приложения
   */

  return array(
    "name"           => "FREE СМИ",
    "sourceLanguage" => "ru",
    "language"       => "ru",
    "import"         => array(
      "application.actions.*",
      "application.components.*",
      "application.controllers.*",
      "application.data.*",
      "application.widgets.*"
    ),
    "components" => array(
      "db" => array(
        "connectionString"      => "mysql:host=localhost;dbname=yarovit_freesmi",
        "username"              => "yarovit_freesmi",
        "password"              => "nRV0HBHF",
        "charset"               => "utf8",
        "emulatePrepare"        => true,
        "schemaCachingDuration" => 60
      ),
      "assetManager" => array(
        "basePath" => "content",
        "baseUrl"  => "/content"
      ),
      "urlManager" => array(
        "showScriptName" => false,
        "urlFormat"      => "path",
        "rules"          => array(
          "content/gismeteo/<id:.+>"                                => "content/gismeteo",
          "content/<type:(css|js|html|xml|xsl)>/<src:.+>"           => "content",
          "content/load/<type:(css|js)>/<folder:[^\/]*>/<files:.+>" => "content/load",
          "content/<_a:img(upload|remove)>/<folder:\w+>"            => "content/<_a>",
          "content/thumb/<folder:\w+>/<src:.+>"                     => "content/thumb",
          "search/(index/)?<s:.+>"                                  => "search",
          "user/reg/<acode:.+>"                                     => "user/reg",
          "user/recall/<paswd:.+>"                                  => "user/recall",
          "user/profile/<id:[\w\-]+>"                               => "user/profile",
          "posts/post/<id:.+>"                                      => "posts/post",
          "comments/getlast/<pid:.+>"                               => "comments/getlast"
        )
      ),
      "authManager" => array(
        "class"        => "AuthManager",
        "defaultRoles" => array("guest")
      ),
      "errorHandler" => array(
        "adminInfo" => "support@freesmi.ru"
      )
    ),
    "vendors" => array(
      "swift.swift_required",
      "image_ext"
    ),
    "menu" => array(
      "items" => array(
        array("label" => "Стартовая" , "url" => "/site/index"   ),
        array("label" => "Новости"   , "url" => "/posts/news"   ),
        array("label" => "Публикации", "url" => "/posts/public" ),
        array("label" => "Блоги"     , "url" => "/posts/blog"   ),
        array("label" => "Медиа"     , "url" => "#"             ),
        array("label" => "Контакты"  , "url" => "/site/contacts")
      )
    ),
    "titles" => array(
      "site" => array(
        "index"    => "Стартовая",
        "handling" => "Обращение главного редактора",
        "contacts" => "Контактная информация"
      ),
      "user" => array(
        "profile" => "Профиль пользователя"
      ),
      "posts" => array(
        "news"   => "Новости",
        "public" => "Публикации",
        "blog"   => "Блоги"
      )
    )
  );

?>